import Vue from "vue";
import UploadProgress from "@/components/UploadProgress/UploadProgress";

const uploadProgress = {
    install: function (Vue) {
        //创建构造器
        const uConstructor = Vue.extend(UploadProgress);
        //创建组件实例
        let uProgress = new uConstructor();
        //元素挂载
        uProgress.$mount(document.createElement('div'));
        //插入body里
        document.body.appendChild(uProgress.$el)
        Vue.prototype.$uProgress = uProgress;
    }
};
export default uploadProgress;
